package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.gulimall.product.to.MemberPriceTo;
import com.guli.gulimall.product.to.SkuFullReductionTo;
import com.guli.gulimall.product.to.SkuLadderTo;
import com.guli.gulimall.product.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 高洋
 * @Classname CouponFeignService
 * @Description
 * @Date 2022/4/29 20:38
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {


    @RequestMapping("/coupon/spubounds/save")
    public R saveSpuBounds(@RequestBody SpuBoundsTo spuBounds);

    @RequestMapping("/coupon/skuladder/save")
    public R saveSkuLadder(@RequestBody SkuLadderTo skuLadder);

    @RequestMapping("/coupon/skufullreduction/save")
    public R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReduction);

    @RequestMapping("/coupon/memberprice/save")
    public R saveMemberPrice(@RequestBody List<MemberPriceTo> memberPrices);
}
